package com.sjf.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sjf.reggie.entity.Category;
import com.sjf.reggie.entity.Dish;

import java.util.List;

public interface CategoryService extends IService<Category> {
    Page<Category> selectList ( Integer pageNum , Integer pageSize );

    /**
     * 根据id删除分类
     * @param id
     * @return
     */
    boolean deleteById ( Long id );

    List<Category> getList ( Category category );
}
